#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int count(int n, int k)
{
	if (k)
	{
		return n * count(n,k-1);
	}

	
}
int main() 
{
	int n = 0;
	scanf("%d", &n);
	int k = 0;
	scanf("%d", &k);
	int sum = count(n, k);
	printf("%d", sum);
	return 0;
}